package com.hmall.api.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;

/**
 * @Author: Serendipity-li
 * @Date: 2024/7/25 - 21:13
 * @Description: com.hmall.api.client
 */
@FeignClient("cart-service")
public interface CartClient {

    /*
     * @description:批量删除购物车中商品
     * @author: louis-li
     * @date: 2024/7/25 21:15
     * @param: [ids]
     * @return: void
     **/
    @DeleteMapping("/carts")
    public void deleteCartItemByIds(@RequestParam("ids") Collection<Long> ids);
}
